package Bridge;

import Bridge.impl.Log4jLogger;
import Bridge.impl.LogbackLogger;
import Bridge.impl.EmployeeService;
import Bridge.impl.UserService;
import Bridge.impl.MongoOperator;
import Bridge.impl.MysqlOperator;

/**
 * @author chengjunjie
 * @date 2025-09-10
 */

public class BridgeDemo {

    public static void main(String[] args) {
        EmployeeService employeeService = new EmployeeService(new MongoOperator(), new Log4jLogger());
        employeeService.init();
        employeeService.update();

        System.out.println("==============");

        UserService userService = new UserService(new MysqlOperator(), new LogbackLogger());
        userService.init();
        userService.update();

    }
}
